//
//class Person{
//    def work(){
//        "working..."
//    }
//    def plays = ['Tennis', 'VolleyBall', 'BasketBall']
//
//    def methodMissing(String name, args){
//        System.out.println "MethodMissing called for $name"
//        def methodInList = plays.find{ it == name.split('play')[1]}
//        if (methodInList){
//            "playing ${name.split('play')[1]}..."
//        }else{
//            throw new MissingMethodException(name, Person.class, args)
//        }
//    }
//
//}
//jack = new Person()
//println jack.work()
//println jack.playTennis()
//println jack.playBasketBall()
//println jack.playVolleyBall()
//
//
//try{
//    jack.playPolitics()
//}catch (Exception ex){
//    println "Error: " + ex
//}
//
//
